package springtest.listener;

import org.springframework.jms.annotation.JmsListener;

//@Component
public class AmqListener {
	@JmsListener(destination = "test.queue")
	public void receiveQueue(String text) {
		System.out.println(text);
	}

	@JmsListener(destination = "test1.queue")
	public void receiveQueue1(String text) {
		System.out.println(text);
	}
}
